checkout: Add an option to require hardlinks
authorColin Walters <walters@verbum.org>
Sun, 26 Jun 2016 14:25:03 +0000 (10:25 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 27 Jun 2016 13:08:46 +0000 (13:08 +0000)
commit439069b2bbe268fae7010e2fcb67c57d914cc22f
tree898400f7ae337a2712ed61ae75970ab3c41eda04
parentda989b473dc6b812646b65437f96ff5b9e3af3a4
checkout: Add an option to require hardlinks

I've seen a few people hit this and wonder why checkouts are slow/take
space.  Really, ensuring this happens is the *point* of OSTree.
Physical copies should be a last resort fallback for very unusual
situations (one of those is rpm-ostree checking out the db since
librpm doesn't know how to read from libostree).

Even I hit the fact that `/var` is a mountpoint disallowing hardlinks
with `/ostree` once and was confused.  =)

Add this to the rofiles-fuse test case because it creates a mount
point.

Closes: #368
Approved by: jlebon
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-checkout.c
tests/test-rofiles-fuse.sh